package com.ruoyi.project.system.offwork.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 请假管理对象 offwork
 * 
 * @author ruoyi
 * @date 2023-07-05
 */
public class Offwork extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long iid;

    /** 学生id */
    @Excel(name = "学生id")
    private Long studentIid;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date begindate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date enddate;

    /** 生效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applydate;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    public void setIid(Long iid)
    {
        this.iid = iid;
    }

    public Long getIid()
    {
        return iid;
    }
    public void setStudentIid(Long studentIid)
    {
        this.studentIid = studentIid;
    }

    public Long getStudentIid()
    {
        return studentIid;
    }
    public void setBegindate(Date begindate)
    {
        this.begindate = begindate;
    }

    public Date getBegindate()
    {
        return begindate;
    }
    public void setEnddate(Date enddate)
    {
        this.enddate = enddate;
    }

    public Date getEnddate()
    {
        return enddate;
    }
    public void setApplydate(Date applydate)
    {
        this.applydate = applydate;
    }

    public Date getApplydate()
    {
        return applydate;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("iid", getIid())
            .append("studentIid", getStudentIid())
            .append("begindate", getBegindate())
            .append("enddate", getEnddate())
            .append("applydate", getApplydate())
            .append("content", getContent())
            .append("status", getStatus())
            .toString();
    }
}
